from flask import Blueprint
admin = Blueprint('admin',__name__)

from .views import *
emp_list_view = EmployeeListView.as_view('emp_list')
admin.add_url_rule('/emp/list/',view_func=emp_list_view,defaults={'page':1} )
admin.add_url_rule('/emp/list/<int:page>/',view_func=emp_list_view )

admin.add_url_rule('/emp/del/<int:id>',view_func=EmployeeDelView.as_view('emp_del'))
# admin.add_url_rule('/emp/create',view_func=EmployeeCreateView.as_view('emp_create'))
admin.add_url_rule('/emp/edit/<int:id>/',view_func=EmployeeCreateOrEdit.as_view('emp_edit'))